#list1 = list(range(1001))
#list2 = list(range(1001,2001))
#for item in list1:
 #   print(item)
#for index, item in enumerate(list1):
 #   print(index,item)
#list1.extend(list2)
#list1 = list("张岳峰")
#print(list1)
#price = [100,200,300,50,150]
#sale = [item*0.50 for item in price]
#print(sale)
#tuple1 = (1.2.3.5.5)
#tuple
import random
lost = 0
win = 0
scissorrockFive = ["剪刀","石头","布"]
while win != 3 and lost != 3:
    robot = random.choice(scissorrockFive)
    superman = input("请出拳：")
    if superman == robot:
     print("平局！")
    elif superman == "剪刀" and robot == "石头":
     print("你输了")
     lost += 1
    elif superman == "剪刀" and robot == "布":
     print("你赢了")
     win += 1
    elif superman == "石头" and robot == "布":
     print("你输了")
     lost += 1
    elif superman == "石头" and robot == "剪刀":
     print("你赢了")
     win += 1
    elif superman == "布" and robot == "剪刀":
     print("你输了")
     lost += 1
    elif superman == "布" and robot == "石头":
     print("你赢了")
     win += 1
if win == 3:
    print("你获胜了")
else:
    print("你是人机吗")